.class final Lcom/greystripe/sdk/av;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Landroid/widget/ImageButton;

.field final synthetic b:Lcom/greystripe/sdk/at;


# direct methods
.method constructor <init>(Lcom/greystripe/sdk/at;Landroid/widget/ImageButton;)V
    .locals 0

    iput-object p1, p0, Lcom/greystripe/sdk/av;->b:Lcom/greystripe/sdk/at;

    iput-object p2, p0, Lcom/greystripe/sdk/av;->a:Landroid/widget/ImageButton;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 4

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iget-object v1, p0, Lcom/greystripe/sdk/av;->a:Landroid/widget/ImageButton;

    invoke-virtual {v1, v0}, Landroid/widget/ImageButton;->getHitRect(Landroid/graphics/Rect;)V

    iget v1, v0, Landroid/graphics/Rect;->right:I

    add-int/lit8 v1, v1, 0xf

    iput v1, v0, Landroid/graphics/Rect;->right:I

    iget v1, v0, Landroid/graphics/Rect;->bottom:I

    add-int/lit8 v1, v1, 0xf

    iput v1, v0, Landroid/graphics/Rect;->bottom:I

    iget-object v1, p0, Lcom/greystripe/sdk/av;->b:Lcom/greystripe/sdk/at;

    invoke-static {v1}, Lcom/greystripe/sdk/at;->a(Lcom/greystripe/sdk/at;)Landroid/widget/FrameLayout;

    move-result-object v1

    new-instance v2, Landroid/view/TouchDelegate;

    iget-object v3, p0, Lcom/greystripe/sdk/av;->a:Landroid/widget/ImageButton;

    invoke-direct {v2, v0, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    return-void
.end method
